<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/Website/" />
<title>SearchFlightSC1TC3</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">SearchFlightSC1TC3</td></tr>
</thead><tbody>
<!--Created By Steven Chow-->
<!--Use Case: Search for Flights-->
<!--Scenario 1: Successful Search-->
<!--Test Case 3: User can search for connecting Flights-->
<!---->
<!--Go to Website-->
<tr>
	<td>open</td>
	<td>http://localhost:8080/Website/</td>
	<td></td>
</tr>
<!--Login-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile.bg-color-red &gt; div.tile-content.icon &gt; img</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=username</td>
	<td>User1</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--Check if we are logged in-->
<tr>
	<td>assertTitle</td>
	<td>Customer Portal</td>
	<td></td>
</tr>
<!--Check if the search button is present-->
<tr>
	<td>assertElementPresent</td>
	<td>css=div.tile-content.icon &gt; img</td>
	<td></td>
</tr>
<!--click the Button-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile-content.icon &gt; img</td>
	<td></td>
</tr>
<!--Are we in the search page?-->
<tr>
	<td>assertTitle</td>
	<td>Search Flight</td>
	<td></td>
</tr>
<!--Search Without Filter-->
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--Check if we have connecting Flights-->
<tr>
	<td>assertText</td>
	<td>//html/body/div/div[2]/div/div/div/div/div[2]/form[2]/table/tbody/tr/td</td>
	<td>1002/1004</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//html/body/div/div[2]/div/div/div/div/div[2]/form[2]/table/tbody/tr/td[6]</td>
	<td>400.0</td>
</tr>
</tbody></table>
</body>
</html>
